home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 10
/
010.d81
/
lair of the necr
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
15KB
|
489 lines
1 gosub61000
10 rem *******************
12 rem ** **
13 rem ** lair of the **
15 rem ** **
20 rem ** necromancer **
25 rem ** **
30 rem *******************
40 :
45 rem written by rob rudd
50 rem july 1984
55 :
60 rem translated for the commodore
65 rem by donna k. woody
70 :
80 poke53280,1:poke53281,0:print"[158]":poke53272,23:printchr$(8)
200 print"[147]"
210 lc=1
250 goto11000
300 print
301 input"===>";c$
303 cm=0:print
305 ifleft$(c$,3)="use"orleft$(c$,3)="[213]se"thencm=2
310 ifleft$(c$,1)="s"orleft$(c$,1)="[211]"thencm=3
315 ifleft$(c$,1)="n"orleft$(c$,1)="[206]"thencm=4
320 ifleft$(c$,1)="e"orleft$(c$,1)="[197]"thencm=5
325 ifleft$(c$,1)="w"orleft$(c$,1)="[215]"thencm=6
330 ifleft$(c$,4)="look"orleft$(c$,4)="[204]ook"thencm=7
335 ifleft$(c$,3)="get"orleft$(c$,3)="[199]et"thencm=9
337 ifleft$(c$,4)="quit"orleft$(c$,4)="[209]uit"thengosub60000
340 ifcm<>2thengoto435
345 print:input"[213]se what item?[160]";u$
347 ud=0:print
350 ifleft$(u$,12)="magic sword"thenud=1
355 ifleft$(u$,4)="horn"thenud=2
360 ifleft$(u$,10)="red potion"thenud=3
365 ifleft$(u$,13)="magic potion"thenud=4
370 ifleft$(u$,7)="sceptre"thenud=5
375 ifleft$(u$,12)="dragonslayer"thenud=6
380 ifleft$(u$,7)="compass"thenud=7
385 ifleft$(u$,11)="magic dust"thenud=8
390 ifleft$(u$,10)="holy water"thenud=9
395 ifleft$(u$,4)="gold"thenud=10
400 ifud=0thenprint"[215]hat?":goto300
405 goto10500
410 ifud=3thenri=2
415 ifud=4thenps=2
420 ifud=8thenmd=2
425 ifud=9thenhw=2
430 ifud=10thengl=2
435 ifleft$(c$,1)="i"orleft$(c$,1)="[201]"thengoto20000
440 ifleft$(c$,6)="[193]nswer"orleft$(c$,6)="answer"thencm=8
445 ifc$=""thengoto301
450 ifleft$(c$,3)="com"orleft$(c$,3)="[195]om"thengoto30000
455 ifcm=0thenprint"[206]o comprendo.":goto300
460 return
499 :
500 rem *** location #1 ***
501 :
510 print"[217]ou are at the entrance of the dungeon."
515 print"[201]t is humid and mucky smelling in here."
520 print"[212]here is a sign on the wall that reads:"
525 print" '[212]hou art now within the lair of the"
527 print" everpowerful [206]ecromancer. [212]hou shalt"
528 print" meet thy doom.'"
530 print:print"[212]here is an exit to the east."
540 gosub300
560 ifcm=2thenprint"[206]o effect."
570 ifcm=3orcm=4orcm=6thenprint"[217]ou cannot go that direction."
580 ifcm=5thenlc=2:goto250
590 ifcm=7thengoto500
610 ifcm=9thenprint"[206]othing here."
620 goto540
999 :
1000 rem *** location #2 ***
1001 :
1010 print"[212]his room has several human skeletons"
1015 print"scattered about the ground."
1020 ifcp=0thenprint"[212]here is a compass on the ground near"
1025 ifcp=0thenprint"one of the skeletons."
1027 print
1030 print"[212]here are exits to the west, south, and east."
1040 gosub300
1050 ifcm=2thenprint"[206]o effect."
1060 ifcm=3thenlc=5
1070 ifcm=4thenprint"[217]ou cannot go that direction."
1080 ifcm=5thenlc=3
1090 ifcm=6thenlc=1
1100 ifcm=3orcm=5orcm=6thengoto250
1110 ifcm=7thengoto1000
1120 ifcm=9andcp>0thenprint"[206]othing here."
1125 ifcm=9andcp=0thenprint"[195]ompass taken.":cp=1
1130 goto1040
1499 :
1500 rem *** location #3 ***
1501 :
1510 print"[212]here is an altar in this room."
1520 ifhw=0thenprint"[193]top of the altar is a vial of holy water."
1525 print
1530 print"[212]here are exits to the south and west."
1540 gosub300
1550 ifcm=2thenprint"[206]o effect."
1560 ifcm=3thenlc=4:goto250
1570 ifcm=4orcm=5thenprint"[217]ou cannot go that direction."
1580 ifcm=6thenlc=2:goto250
1590 ifcm=7thengoto1500
1600 ifcm=9andhw>0thenprint"[206]othing here."
1605 ifcm=9andhw=0thenprint"[200]oly water taken.":hw=1
1610 goto1540
1999 :
2000 rem *** location #4 ***
2001 :
2010 print"[212]here is a statue of a kobold in here."
2020 ifsc=0andd4=0thenprint"[201]t is holding a sceptre."
2025 ifsc=0andd4=1thenprint"[212]here is a sceptre on the ground near thestatue."
2030 print"[193] sign at the base of the statue reads: '[198]ork over the dinero'."
2035 print
2040 print"[212]here are exits to the south and west."
2045 gosub300
2050 ifcm=2andud=10thenprint"[212]he statue let go of the sceptre.":d4=1
2060 ifcm=2andud<>10thenprint"[206]o effect."
2070 ifcm=9andd4=0thenprint"[217]ou cannot pry the sceptre away from thestatue's grasp."
2080 ifcm=9andd4=1andsc>0thenprint"[206]othing here."
2090 ifcm=9andd4=1andsc=0thenprint"[211]ceptre taken.":sc=1
2100 ifcm=3thenlc=7:goto250
2110 ifcm=4orcm=5thenprint"[217]ou cannot go that direction."
2120 ifcm=6thenlc=3:goto250
2130 ifcm=7thengoto2000
2140 goto2045
2499 :
2500 rem *** location #5 ***
2505 ifd5=1andmd=0thenprint"[212]here is a pouch of magic dust on the ground in here."
2510 ifd5=0thenprint"[212]here is a group of undead skeletons in this room."
2512 ifd5=0thenprint"[212]hey are attacking."
2515 ifd5=1andmd>0thenprint"[212]his room is empty."
2516 print
2517 ifd5=1thenprint"[212]here are exits to the east and south."
2520 gosub300
2525 ifd5=1thengoto2550
2530 ifcm=2andud=9thenprint"[212]he holy water destroyed the skeletons.":d5=1:goto2500
2540 print"[212]oo late, the skeletons begin to rip"
2542 print"all of your flesh off and have a great feast.":goto50000
2550 ifcm=2thenprint"[206]o effect."
2560 ifcm=3thenlc=17:goto250
2570 ifcm=4orcm=6thenprint"[217]ou cannot go that direction."
2580 ifcm=5thenlc=2:goto250
2590 ifcm=7thengoto2500
2600 ifcm=9andmd>0thenprint"[206]othing here."
2610 ifcm=9andmd=0thenprint"[205]agic dust taken.":md=1
2620 goto2520
2999 :
3000 rem *** location #7 ***
3001 :
3010 print"[212]here is a glass case in the middle of this room."
3020 ifds=0thenprint"[212]here is a dragonslayer in the the case."
3030 print:print"[212]here are exits to the north and west."
3040 gosub300
3050 ifcm=2andud=8thenprint"[212]he magic dust evaporated part of the glass case.":d7=1
3060 ifcm=2andud<>8thenprint"[206]o effect."
3070 ifcm=3orcm=5thenprint"[217]ou cannot go that direction."
3080 ifcm=4thenlc=4:goto250
3090 ifcm=6thenlc=17:goto250
3100 ifcm=7thengoto3000
3105 ifcm=9andd7=1andds=1thenprint"[206]othing here."
3110 ifcm=9andd7=1andds=0thenprint"[196]ragonslayer taken.":ds=1
3120 ifcm=9andd7=0thenprint"[217]ou cannot break the glass case. [201]t is obviously magic."
3130 goto3040
3499 :
3500 rem *** location #8 ***
3501 :
3510 ifd8=1andri>0thenprint"[193] dead dragon is on the floor in here."
3512 ifd8=1andri>0thenprint"[212]hen room is otherwise empty."
3520 ifd8=1andri=0thenprint"[212]he dead dragon has a red potion strung around it's neck."
3530 ifd8=0thenprint"[212]here is a ferocious looking drake in"
3532 ifd8=0thenprint"here that is about to attack."
3535 ifd8=1thenprint:print"[212]here is an exit to the east."
3540 gosub300
3550 ifd8=1thengoto3590
3560 ifcm=2andud=6thenprint"[202]ust as the drake was about to unleash"
3561 ifcm=2andud=6thenprint"it's fiery weapon, you slash it in the"
3562 ifcm=2andud=6thenprint"neck and it falls to the ground, dead."
3565 ifcm=2andud=6thend8=1:goto3500
3570 print"[212]oo late. [212]he drake spits out boiling"
3572 print"lava, which instantly fries you. [201]t's all over.":goto50000
3590 ifcm=2thenprint"[206]o effect."
3600 ifcm=3orcm=4orcm=6thenprint"[217]ou cannot go that direction."
3610 ifcm=5thenlc=16:goto250
3620 ifcm=7thengoto3500
3630 ifcm=9andri>0thenprint"[206]othing here."
3640 ifcm=9andri=0thenprint"[208]otion taken.":ri=1
3650 goto3540
3999 :
4000 rem *** location #9 ***
4001 :
4010 ifms=0thenprint"[212]here is a rather large stone in this"
4011 ifms=0thenprint"room with a sword driven directly into"
4012 ifms=0thenprint"the stone. [193]s you approach the sword it begins to glow."
4020 ifms>0thenprint"[212]here is nothing in this room but a large stone."
4030 print:print"[212]here are exits to the south and west."
4040 gosub300
4050 ifcm=2andud=4thenprint"[217]ou drink the magic potion and you"
4051 ifcm=2andud=4thenprint"become extremely strong. [217]ou are able"
4052 ifcm=2andud=4thenprint"to pull the sword out of the stone."
4053 ifcm=2andud=4thenprint"[205]agic sword taken.":ms=1
4060 ifcm=2andud<>4thenprint"[206]o effect."
4070 ifcm=3thenlc=15:goto250
4080 ifcm=4orcm=5thenprint"[217]ou cannot go that direction."
4090 ifcm=6thenlc=16:goto250
4100 ifcm=7thengoto4000
4110 ifcm=9andms=0thenprint"[2